package com.core.zyyz.amc.modules.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.core.zyyz.amc.modules.mapper.AmcSystemAttachmentsBMapper;
import com.core.zyyz.amc.modules.domain.AmcSystemAttachmentsB;
import com.core.zyyz.amc.modules.service.AmcSystemAttachmentsBService;

/**
 * 附件、注释Service业务层处理
 *
 * @author lfs
 * @date 2024-12-06
 */
@Service
public class AmcSystemAttachmentsBServiceImpl implements AmcSystemAttachmentsBService
{
    @Autowired
    private AmcSystemAttachmentsBMapper amcSystemAttachmentsBMapper;

    /**
     * 查询附件、注释
     *
     * @param attachmentId 附件、注释主键
     * @return 附件、注释
     */
    @Override
    public AmcSystemAttachmentsB selectAmcSystemAttachmentsBByAttachmentId(String attachmentId)
    {
        return amcSystemAttachmentsBMapper.selectAmcSystemAttachmentsBByAttachmentId(attachmentId);
    }

    /**
     * 查询附件、注释列表
     *
     * @param amcSystemAttachmentsB 附件、注释
     * @return 附件、注释
     */
    @Override
    public List<AmcSystemAttachmentsB> selectAmcSystemAttachmentsBList(AmcSystemAttachmentsB amcSystemAttachmentsB)
    {
        return amcSystemAttachmentsBMapper.selectAmcSystemAttachmentsBList(amcSystemAttachmentsB);
    }

    /**
     * 新增附件、注释
     *
     * @param amcSystemAttachmentsB 附件、注释
     * @return 结果
     */
    @Override
    public int insertAmcSystemAttachmentsB(AmcSystemAttachmentsB amcSystemAttachmentsB)
    {
        return amcSystemAttachmentsBMapper.insertAmcSystemAttachmentsB(amcSystemAttachmentsB);
    }

    /**
     * 修改附件、注释
     *
     * @param amcSystemAttachmentsB 附件、注释
     * @return 结果
     */
    @Override
    public int updateAmcSystemAttachmentsB(AmcSystemAttachmentsB amcSystemAttachmentsB)
    {
        return amcSystemAttachmentsBMapper.updateAmcSystemAttachmentsB(amcSystemAttachmentsB);
    }

    /**
     * 批量删除附件、注释
     *
     * @param attachmentIds 需要删除的附件、注释主键
     * @return 结果
     */
    @Override
    public int deleteAmcSystemAttachmentsBByAttachmentIds(String[] attachmentIds)
    {
        return amcSystemAttachmentsBMapper.deleteAmcSystemAttachmentsBByAttachmentIds(attachmentIds);
    }

    /**
     * 删除附件、注释信息
     *
     * @param attachmentId 附件、注释主键
     * @return 结果
     */
    @Override
    public int deleteAmcSystemAttachmentsBByAttachmentId(String attachmentId)
    {
        return amcSystemAttachmentsBMapper.deleteAmcSystemAttachmentsBByAttachmentId(attachmentId);
    }
}
